package com.example.backendmanage.info;

import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class User {
    @Alias(value = "ID")
    private int id;
    @Alias(value = "用户名")
    private String username;
    //会忽略掉这个password不展示给前端
//    @JsonIgnore
    @Alias(value = "密码")
    private String password;
    @Alias(value = "昵称")
    private String nickname;
    @Alias(value = "手机号")
    private String phone;
    @Alias(value = "地址")
    private String address;
    @Alias(value = "邮箱")
    private String email;
    @Alias(value = "创建时间")
    private Timestamp create_time;
    @Alias(value = "更新时间")
    private Timestamp update_time;

    private String Token;

    private String avatarUrl;

    private String role;
}
